package com.ruoyi.mall.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * mall对象 mall_members
 * 
 * @author ruoyi
 * @date 2020-05-14
 */
public class MallMembers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 会员编号 */
    private Long membersId;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 交易密码 */
    @Excel(name = "交易密码")
    private String tradePassword;

    /** 性别 */
    @Excel(name = "性别")
    private Integer sex;

    /** 生日 */
    @Excel(name = "生日")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String birthDate;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickName;

    /** 现金余额 */
    @Excel(name = "现金余额")
    private BigDecimal money;
    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 积分 */
    @Excel(name = "积分")
    private BigDecimal integral;
    /** 成长值 */
    @Excel(name = "成长值")
    private Long growthValue;
    /** 需要成长值 */
    @Excel(name = "需要成长值")
    private Long needValue;

    /** 卡卷数 */
    @Excel(name = "卡卷数")
    private Long cardRolls;

    /** 礼品卡数 */
    @Excel(name = "礼品卡数")
    private Long giftCards;

    /** 级别Id */
    @Excel(name = "级别Id")
    private Long levelId;

    /** 级别名称 */
    @Excel(name = "级别名称")
    private String levelName;

    /** 头像 */
    @Excel(name = "头像")
    private String icon;

    public Long getGrowthValue() {
        return growthValue;
    }

    public void setGrowthValue(Long growthValue) {
        this.growthValue = growthValue;
    }

    public Long getNeedValue() {
        return needValue;
    }

    public void setNeedValue(Long needValue) {
        this.needValue = needValue;
    }

    public void setMembersId(Long membersId)
    {
        this.membersId = membersId;
    }

    public Long getMembersId() 
    {
        return membersId;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setTradePassword(String tradePassword) 
    {
        this.tradePassword = tradePassword;
    }

    public String getTradePassword() 
    {
        return tradePassword;
    }
    public void setSex(Integer sex) 
    {
        this.sex = sex;
    }

    public Integer getSex() 
    {
        return sex;
    }
    public void setBirthDate(String birthDate) 
    {
        this.birthDate = birthDate;
    }

    public String getBirthDate() 
    {
        return birthDate;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setMoney(BigDecimal money)
    {
        this.money = money;
    }

    public BigDecimal getMoney()
    {
        return money;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public void setIntegral(BigDecimal integral)
    {
        this.integral = integral;
    }

    public BigDecimal getIntegral()
    {
        return integral;
    }
    public void setCardRolls(Long cardRolls)
    {
        this.cardRolls = cardRolls;
    }

    public Long getCardRolls() 
    {
        return cardRolls;
    }
    public void setGiftCards(Long giftCards) 
    {
        this.giftCards = giftCards;
    }

    public Long getGiftCards() 
    {
        return giftCards;
    }
    public void setLevelId(Long levelId) 
    {
        this.levelId = levelId;
    }

    public Long getLevelId() 
    {
        return levelId;
    }
    public void setLevelName(String levelName) 
    {
        this.levelName = levelName;
    }

    public String getLevelName() 
    {
        return levelName;
    }
    public void setIcon(String icon) 
    {
        this.icon = icon;
    }

    public String getIcon() 
    {
        return icon;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("membersId", getMembersId())
            .append("status", getStatus())
            .append("phone", getPhone())
            .append("password", getPassword())
            .append("tradePassword", getTradePassword())
            .append("sex", getSex())
            .append("birthDate", getBirthDate())
            .append("nickName", getNickName())
            .append("money", getMoney())
            .append("integral", getIntegral())
            .append("cardRolls", getCardRolls())
            .append("giftCards", getGiftCards())
            .append("levelId", getLevelId())
            .append("levelName", getLevelName())
            .append("icon", getIcon())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
